package com.example.live.controller.impl;

import com.example.live.controller.IdentityController;
import com.example.live.pojo.vo.LoginVO;
import com.example.live.service.IdentityService;

import javax.annotation.Resource;

public class IdentityControllerImpl implements IdentityController {

    @Resource
    private IdentityService identityService;

    @Override
    public void getCode(String phone) {
        identityService.getCode(phone);
    }

    @Override
    public LoginVO login(String phone, String verificationCode) {
        return identityService.login(phone, verificationCode);
    }

}
